package com.xbao.core.http;

public class CommResult<T> {
    public boolean success=true;
    public String errmsg;
    public String errcode;
    public long now;
    public T data;

    public CommResult() {
    }
    public CommResult (T data){
        this.data=data;
        this.success=true;
    }


    public CommResult(boolean success, String errorCode, String desc) {
        this.success = success;
        this.errmsg = desc;
        this.errcode = errorCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
